import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';

export default async function a006(fd: IFeidaoAiBrowserComponent, args: { name: string, id: string }) {
	const a = args;

	const n = a.name;
	const no = a.id;
	// if (a != null) {

	if (a) {
		fd.data.node.querySelector<HTMLInputElement>('#name').value = n;
		const wk = fd.data.node.querySelector<HTMLInputElement>('#name');
		wk.setAttribute('data-feidao-wid', no);
	}
}
